package gat.api.oss;

import com.alibaba.fastjson.JSONObject;
import org.springframework.web.multipart.MultipartFile;

import com.bitsun.core.common.web.ResultDTO;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;

/**
 * @author sxq
 * @date 2022/2/10
 */
@Api(value = "oss", description = "文件上传", tags = {"文件上传"})
public interface OssApi {

    /**
     * 上传文件
     *
     * @return 返回完整的资源对象
     */
    @ApiOperation(value = "上传文件", tags = {"文件上传"}, nickname = "uploadFile")
    @ApiResponses(value = {@ApiResponse(code = 200, message = "操作是否成功,000000:成功，否则失败")})
    ResultDTO<String> uploadFile(MultipartFile multipartFile);

}
